package com.phone.entity;

import java.util.Date;

/**
 * Created by tisen on 2017/9/5.
 */
public class PointHistory extends HibernateObject {
    /**
     * type = -1 : 其他
     * type = 0 : 签到奖励
     * type = 1 : 抽奖奖励
     * type = 2 : 邀请奖励
     * type = 3 : 积分兑换
     * score = 积分变动，可为负数
     */

    private String owner;
    private int type;
    private int score;

    public PointHistory() {
    }

    @Override
    public String toString() {
        return "\nPointHistory{" +
                "date=" + date +
                ", owner='" + owner + '\'' +
                ", type=" + type +
                ", score=" + score +
                "}";
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
